package com.indexingsystem.boss.entity;

import java.io.Serializable;
import java.util.Date;

public class OftenConsignees implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 5497914986611460422L;

	private String consigneeMessageId;

    private String userId;

    private String consigneeName;

    private String receiptAddress;

    private String consigneePhone;

    private String consigneeEmail;

    private String receiptPostCode;

    private Date updateDate;

    public String getConsigneeMessageId() {
        return consigneeMessageId;
    }

    public void setConsigneeMessageId(String consigneeMessageId) {
        this.consigneeMessageId = consigneeMessageId == null ? null : consigneeMessageId.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getConsigneeName() {
        return consigneeName;
    }

    public void setConsigneeName(String consigneeName) {
        this.consigneeName = consigneeName == null ? null : consigneeName.trim();
    }

    public String getReceiptAddress() {
        return receiptAddress;
    }

    public void setReceiptAddress(String receiptAddress) {
        this.receiptAddress = receiptAddress == null ? null : receiptAddress.trim();
    }

    public String getConsigneePhone() {
        return consigneePhone;
    }

    public void setConsigneePhone(String consigneePhone) {
        this.consigneePhone = consigneePhone == null ? null : consigneePhone.trim();
    }

    public String getConsigneeEmail() {
        return consigneeEmail;
    }

    public void setConsigneeEmail(String consigneeEmail) {
        this.consigneeEmail = consigneeEmail == null ? null : consigneeEmail.trim();
    }

    public String getReceiptPostCode() {
        return receiptPostCode;
    }

    public void setReceiptPostCode(String receiptPostCode) {
        this.receiptPostCode = receiptPostCode == null ? null : receiptPostCode.trim();
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

	@Override
	public String toString() {
		return "OftenConsignees [consigneeMessageId=" + consigneeMessageId + ", userId=" + userId + ", consigneeName="
				+ consigneeName + ", receiptAddress=" + receiptAddress + ", consigneePhone=" + consigneePhone
				+ ", consigneeEmail=" + consigneeEmail + ", receiptPostCode=" + receiptPostCode + ", updateDate="
				+ updateDate + "]";
	}

	public OftenConsignees() {
		super();
	}

	public OftenConsignees(String consigneeMessageId, String userId, String consigneeName, String receiptAddress,
			String consigneePhone, String consigneeEmail, String receiptPostCode, Date updateDate) {
		super();
		this.consigneeMessageId = consigneeMessageId;
		this.userId = userId;
		this.consigneeName = consigneeName;
		this.receiptAddress = receiptAddress;
		this.consigneePhone = consigneePhone;
		this.consigneeEmail = consigneeEmail;
		this.receiptPostCode = receiptPostCode;
		this.updateDate = updateDate;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((consigneeEmail == null) ? 0 : consigneeEmail.hashCode());
		result = prime * result + ((consigneeMessageId == null) ? 0 : consigneeMessageId.hashCode());
		result = prime * result + ((consigneeName == null) ? 0 : consigneeName.hashCode());
		result = prime * result + ((consigneePhone == null) ? 0 : consigneePhone.hashCode());
		result = prime * result + ((receiptAddress == null) ? 0 : receiptAddress.hashCode());
		result = prime * result + ((receiptPostCode == null) ? 0 : receiptPostCode.hashCode());
		result = prime * result + ((updateDate == null) ? 0 : updateDate.hashCode());
		result = prime * result + ((userId == null) ? 0 : userId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		OftenConsignees other = (OftenConsignees) obj;
		if (consigneeEmail == null) {
			if (other.consigneeEmail != null)
				return false;
		} else if (!consigneeEmail.equals(other.consigneeEmail))
			return false;
		if (consigneeMessageId == null) {
			if (other.consigneeMessageId != null)
				return false;
		} else if (!consigneeMessageId.equals(other.consigneeMessageId))
			return false;
		if (consigneeName == null) {
			if (other.consigneeName != null)
				return false;
		} else if (!consigneeName.equals(other.consigneeName))
			return false;
		if (consigneePhone == null) {
			if (other.consigneePhone != null)
				return false;
		} else if (!consigneePhone.equals(other.consigneePhone))
			return false;
		if (receiptAddress == null) {
			if (other.receiptAddress != null)
				return false;
		} else if (!receiptAddress.equals(other.receiptAddress))
			return false;
		if (receiptPostCode == null) {
			if (other.receiptPostCode != null)
				return false;
		} else if (!receiptPostCode.equals(other.receiptPostCode))
			return false;
		if (updateDate == null) {
			if (other.updateDate != null)
				return false;
		} else if (!updateDate.equals(other.updateDate))
			return false;
		if (userId == null) {
			if (other.userId != null)
				return false;
		} else if (!userId.equals(other.userId))
			return false;
		return true;
	}
}